<?php
class Article_category extends CActiveRecord
{
	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}
	
	public function tableName()
	{
	    return strtolower(get_class($this));
	}
	
	public function relations()
	{
		return array(
			'relation'=>array(self::HAS_MANY,'Article_category_relation','category_id'),
		);
	}
}